<template>
  <view>
    <view v-html="form.content"/>
  </view>
</template>

<script>
import {AgreementApi as Api} from "@/comms/api/agreementApi";
import {Msg, toPath} from "@/utils/BaseUtils";

export default {
  data() {
    return {
      params: {},
      form: {}
    };
  },
  onLoad(params) {
    this.params = params;
  },
  mounted() {
    this.loadDate(this.params)
  },
  methods: {
    toPath,
    async loadDate({id}) {
      Msg.loading(async close => {
        await Api.getPrivacyPolicy().then(({data}) => this.form = {...data})
        close?.();
      })
    }
  }
}
</script>

<style lang="scss">

</style>
